package com.ten_4_4.hiring.talent.service;

import com.ten_4_4.hiring.talent.dao.TalentDao;
import com.ten_4_4.hiring.talent.po.TalentPo;

public class TalentService {

	private TalentDao talentDao = new TalentDao();
	
	public TalentPo login(String code, String password) {
		return talentDao.login(code, password);
	}

	public TalentPo register(String code, String password, String nickname) {
		return talentDao.register(code, password, nickname);
	}

	public int modifyPassword(int talentId, String password) {
		return talentDao.modifyPassword(talentId, password);
	}

	public int modifyEmail(int talentId, String email) {
		return talentDao.modifyEmail(talentId, email);
	}

	public int modifyPhone(int talentId, String phone) {
		return talentDao.modifyPhone(talentId, phone);
	}

	public int modifyNickname(int talentId, String nickname) {
		return talentDao.modifyNickname(talentId, nickname);
	}

	public int saveBaseInfo(TalentPo talentPo) {
		return talentDao.saveBaseInfo(talentPo);
	}

	public TalentPo findTalentByEmail(String oldEmail) {
		return talentDao.findTalentByEmail(oldEmail);
	}

}
